---
layout: default
---
<div class="home">
  <article class="feature-image" >
  	<div style="background-image: url('{{ site.baseurl }}/{{ site.themeconfig.place_holder_image }}')"/>
  	<header style="background-image: url('{{ site.imageurl }}')">
    <h1 class="call-out-title">{{ page.title }}</h1>
    </header>
  </article>

<div class="posts">
    {% if site.categories[page.category] %}
        {% for post in site.categories[page.category] %}
            {% include post_tags_category.html %}			
		<div class="post-teaser">
		  <header>
		    <h1>
            <a id="post-link-trans" class="post-link" href="{{ post.url | prepend: site.baseurl }}">
		        {{ post.title }}
		      </a>
		    </h1>
		    <p id="subtitletrans" class="subtitlecontainer">
		      <a class="subtitle">{{ post.date | date: "%Y年%m月%-d日" }}</a>
		      {% if post.author %} | <a class="subtitle" href="{{ site.baseurl }}/About/">{{ post.author }}</a>{% endif %}
		      {% if post.category and post.tags %} | <a class="subtitle">{{ category_content }}</a> <a class="subtitle">{{ tags_content }}</a>{% endif %}
		    </p>
		  </header>
		  <div class="excerpt">
		  {% assign num = post.content | number_of_words %}
		  {% if  num  < site.themeconfig.visiblewords %}
		    {{ post.content }}
		  {% else %}
		    {{ post.content | truncatewords: site.themeconfig.visiblewords }}
		    <p>
		    <a class="text" href="{{ post.url | prepend: site.baseurl }}">
		      {{ site.themeconfig.str_continue_reading }}
		    </a>
		    </p>
		  {% endif %}
		  </div>
		</div>
        {% endfor %}

    {% else %}
	  <article>
		<header>
    		<h4 class="title">There are no posts for this category.</h4>
    	</header>
      </article>
    {% endif %}
</div>
</div>
